package com.anolesoft.yr.mbus.part.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhj
 * @date 2020/8/31 13:34
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping(value="/a",produces = MediaType.APPLICATION_JSON_VALUE)
    public String a(){
        if(1==1){
            throw new RuntimeException("aaa");
        }
        return "{\"data\":1}";
    }
    @GetMapping(value="/b",produces = MediaType.APPLICATION_JSON_VALUE)
    public String b(){
        return "{\"data\":1}";
    }
    @GetMapping(value="/c",produces = MediaType.APPLICATION_JSON_VALUE)
    public String c(){
        return "{\"data\":1}";
    }
}
